@import com.mgfireworks.mgplatform.mgadmin.user.model.User
@extends("/form_template",title=(isEdit?"修改用户":"添加用户"))
@args Boolean isEdit
@args User user
<div class="x_content">
   <f_input name="userId" text="用户编号" placeholder="自动生成" value="@user.getUserId()" readonly="readonly"></f_input>
   <f_input name="userAccount" text="用户账号" value="@user.getUserAccount()"></f_input>
   <f_input name="userName" text="用户名称" value="@user.getUserName()"></f_input>
   <f_input name="userPwd" text="用户密码" type="password"></f_input>
   <f_chooser name="orgName" text="所属机构" value="@user.getOrgName()" name2="orgId" value2="@user.getOrgId()" url="@url("/sys/org/select.html")"></f_chooser>
   <f_chooser name="roleName" text="用户角色" value="@user.getRoleName()" name2="userRole" value2="@user.getUserRole()" url="@url("/user/role/select.html")"></f_chooser>
</div>